.client-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.main{
    height: 550px;
    width: 750px;
    background-color: rgb(238,238,238);
    border-radius: 5px;
    display: flex;
}
.main .left{
    width: 250px;
    height: 100%;
    background-color: rgb(46,50,56);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.main .right{
    width: 500px;
    height: 100%;
}
.main .left .user{
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    color: white;
    padding: 0 20px;
}
.main .left .search{
    height: 40px;
    padding: 0 20px;
    display: flex;/*水平方向排列*/
    justify-content: center;
    align-items: center;
}
.main .left .search input{
    height: 25px;
    width: 200px;
    line-height: 25px;
    font-size: 5px;
    color: white;
    background-color: rgb(38,41,46);
    border: none;
    outline: none;
    border-radius: 10px;
}
.main .left .search button{
    height: 25px;
    width: 25px;
    border: none;
    outline: none;
    border-radius: 5px;
    background-image: url(../img/搜素.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center;
    background-color: rgb(38,41,46);
}
.main .left .search button:active{
    background-color: grey;
}
.main .left .tab{
    height: 50px;
    display: flex;
    align-items: center;
}
.main .left .tab .tab-session{
    height: 100%;
    width: 50%;
    background-image: url(../img/会话2.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 30px 30px;
}
.main .left .tab .tab-friend{
    height: 100%;
    width: 50%;
    background-image: url(../img/好友1.png);
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-position: center;
}
.main .left .list{
    height: 360px;
    overflow: auto;
}
.main .left .list li{
    height: 60;
    padding: 10px 20px;
    color: white;
    border-top:  1px solid black;
}
.main .left .list .selected{
    background-color: rgb(46,54,65);
}
.main .left .list li h3,
.main .left .list li p{
    height: 20px;
    font-size: 15px;
    line-height: 20px;
}
.main .left .list li h4{
    height: 30px;
    line-height: 40px;
    font-size: 20px;
}
.hide{
    display: none;/*隐藏*/
}
::-webkit-scrollbar{
    display: none;
}

.main .right .title {
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.main .right .message-show {
    height: 300px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin: 0 10px;
    /* 内容太多, 自动进行滚动 */
    overflow: auto;
}

.main .right .message-show .message {
    margin-top: 10px;
    /* 宽度默认 100%, 高度的话不显式设定, 后续一条消息的内容有多有少 */
    display: flex;
    width: 90;
}

/* 这个样式让子元素靠左 */
.main .right .message-show .message-left {
    justify-content: flex-start;
}

/* 这个样式让子元素靠右 */
.main .right .message-show .message-right {
    text-align: right;
}

.main .right .message-show .message .box {
    /* box 凸显出左右这样的效果, 宽度不能是 100% */
    width: 500px;
}

.main .right .message-show .message .box h4 {
    /* 去掉加粗效果 */
    font-weight: normal;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
}

.main .right .message-show .message .box p {
    padding: 20px;
    border-radius: 10px;
}

/* 给左侧右侧消息设置背景色 */
.main .right .message-show .message-left .box p {
    background-color: #fff;
    font-size: 20px;
}

.main .right .message-show .message-right .box p {
    background-color: rgb(123, 181, 107);
    font-size: 20px;
}
.main .right .message-input {
     /*先把 textarea 转成块级元素, 方便设置尺寸啥的 */
    display: block;
    width: 100%;
    height: 100px;
    border: none;
    outline: none;
    font-size: 20px;
    font-weight: 15px;

    margin-top: 2px;
    background-color:rgb(245,245,245);
    padding: 10px;
    resize: none;
} 
.main .right .ctrl {
    height: 35px;
    display: flex;
    justify-content: flex-end;
}

.main .right .ctrl button {
    height: 35px;
    width: 100px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    color:rgb(7,193,96);
}

.main .right .ctrl button:active {
    background-color: grey;
    color: white;
}

